<html>
<head>
	<title>Partage Y-Nov - BTS SIO</title>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<link rel="stylesheet" type="text/css" href="style.css">
	<link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
	<link rel="shortcut icon" href="../favicon.ico">
	<link rel="stylesheet" type="text/css" href="css/normalize.css" />
	<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.2.0/css/font-awesome.min.css" />
</head>
<body>
	<div id="container">
		<div class="menu-wrap">
			<nav class="menu">
				<!--<div class="profile"><img src="img/user1.png" alt="Matthew Greenberg"/><span>Matthew Greenberg</span></div> -->
				<div class="icon-list">
					<a href="index.php"><i class="fa fa-home"></i><span>Accueil</span></a>
					<a href="bts_sio.php"><i class="fa fa-file-pdf-o"></i><span>BTS SIO</span></a>
					<a href="#"><i class="fa fa-file-pdf-o"></i><span>Bachelor</span></a>
					<a href="#"><i class="fa fa-file-pdf-o"></i><span>Expert</span></a>
				</div>
			</nav>
			<button class="close-button" id="close-button">Close Menu</button>
		</div>
		<button class="menu-button" id="open-button">Open Menu</button>
		<div class="content-wrap">
			<header>
				<h1>Site de partage Y-nov Lyon</h1>
				<h2>Bienvenue</h2>
			</header>
			<h3>Uploadez vos fichiers</h3>
			<div class="formulaire">
				<p><i class="fa fa-exclamation-triangle"></i> Attention seul, les fichiers PDF sont acceptés</p>
				<form method="post" enctype="multipart/form-data" action="upload.php">
					<label>Séléctionnez votre fichier:</label><br>
					<input type="file" name="userfile" /><br>
					<input type="submit" value="Uploader" id="uploader"/>
				</form>
			</div>
			<div class="lien_fichier">
			<?php 
				$dirname = './fichiers/'; 
				$dir = opendir($dirname); 

				while($file = readdir($dir)) { 
					if($file != '.' && $file != '..' && !is_dir($dirname.$file)) 
					{ 
						echo '<a href="'.$dirname.$file.'" id="lien_fichier">'.$file.'</a>'.'<br /><br />'; 
					} 
				} 

				closedir($dir); 
			?>
			</div>
		</div><!-- fin content-wrap -->
	</div><!-- fin container -->
	<script src="js/classie.js"></script>
	<script src="js/main.js"></script>
</body>
</html>